package org.agile2soft.nexoma.core.tapestry.pages.internaluser;

import org.agile2soft.nexoma.core.entity.InternalUser;
import org.apache.tapestry5.annotations.Mixin;
import org.apache.tapestry5.beaneditor.BeanModel;
import org.apache.tapestry5.ioc.Messages;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.BeanModelSource;

import br.com.arsmachina.tapestrycrud.base.BaseEditPage;
import br.com.arsmachina.tapestrycrud.hibernatevalidator.mixins.HibernateValidatorMixin;

public class EditInternalUser extends BaseEditPage<InternalUser,Integer> {

    @Mixin
    @SuppressWarnings("unused")
    private HibernateValidatorMixin hibernateValidatorMixin;

    @Inject
    private BeanModelSource beanModelSource;

    @Inject
    private Messages messages;

    @Override
    public BeanModel<InternalUser> getBeanModel() {
        return beanModelSource.createEditModel(InternalUser.class,messages);
    }

}
